package com.anotacion;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE,ElementType.METHOD})
@interface Action {
    public String title() default "title";
    public String value();
}
@Action(title = "1111",value = "222")
class Message1{
    @Action("yyyyy")
    public String echo(String msg) {
        return "echo => "+msg;
    }
}
